package com.csht.mapper;

import java.util.List;

import com.csht.model.CshtOneMenu;
import com.csht.vo.index.menu.CshtOneMenuVo;
import com.csht.vo.index.shangpinzhangqu.ShangPinZhangQu;

public interface CshtOneMenuMapper {
	
	/**
	 * 获取一、二、三级菜单（联表查询）
	 * @return
	 * @throws Exception
	 */
	public List<CshtOneMenuVo> getOneOrTwoOrThreeMenu() throws Exception;
	
	/**
	 * 商品展区获取一级菜单
	 * @return
	 * @throws Exception
	 */
	public List<ShangPinZhangQu> getOneOrTwoMenuAndBanner() throws Exception;
	
	/**
	 * 有用户登录时，商品展区获取一级菜单
	 * @return
	 * @throws Exception
	 */
	public List<ShangPinZhangQu> getOneMenuAndBanner() throws Exception;
	
	/**
	 * (定位改变)商品展区获取一级菜单（封装二级菜单和banner图）
	 * @return
	 * @throws Exception
	 */
	public List<ShangPinZhangQu> getOneMenu() throws Exception;
	
	/**
	 * 根据一级菜单id查找一级菜单
	 * @param oneMenuId
	 * @return
	 * @throws Exception
	 */
	public CshtOneMenu getOneMenuById(Integer oneMenuId) throws Exception;
	
	/**
	 * 查询全部一级菜单
	 * @return
	 * @throws Exception
	 */
	public List<CshtOneMenu> getAllOneMenu()throws Exception;
	

}
